package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻与公告对象 newsbulletin
 * 
 * @author dahaoren
 * @date 2024-07-08
 */
public class Newsbulletin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻编号 */
    @Excel(name = "新闻编号")
    private String nbId;

    /** 新闻名称 */
    @Excel(name = "新闻名称")
    private String nbTitle;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String nbName;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nbDate;

    public void setNbId(String nbId) 
    {
        this.nbId = nbId;
    }

    public String getNbId() 
    {
        return nbId;
    }
    public void setNbTitle(String nbTitle) 
    {
        this.nbTitle = nbTitle;
    }

    public String getNbTitle() 
    {
        return nbTitle;
    }
    public void setNbName(String nbName) 
    {
        this.nbName = nbName;
    }

    public String getNbName() 
    {
        return nbName;
    }
    public void setNbDate(Date nbDate) 
    {
        this.nbDate = nbDate;
    }

    public Date getNbDate() 
    {
        return nbDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("nbId", getNbId())
            .append("nbTitle", getNbTitle())
            .append("nbName", getNbName())
            .append("nbDate", getNbDate())
            .toString();
    }
}
